<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <title>首页</title>

</head>
<body style="background-image:url(image/0.jpg); background-size: auto auto; background-repeat: no-repeat; background-size: 40%;" >
  <h1>首页</h1>
<!--background-repeat: repeat-x 背景图片横向重复-->
<!--repeat-y 背景图片竖向重复-->
<!--no-repeat 背景图片不重复-->
    <div class="navbar-header">
      <a class="navbar-brand" href="#">Brand</a>&nbsp;&nbsp;
      <input type="text" class="form-control" placeholder="Search">
      <button type="submit" class="btn btn-default">Submit</button>
    </div>
  <div name="nav">
    <ul>
      <li>首页</li>
      <li>活动</li>
      <li>关于公司</li>
      <li>公司后台</li>
      <!--{% if request.session.is_login %}-->
       <a><li>我的</li></a>
        <!--<li>欢迎，{{ request.session.username }}</li>-->
      <a href="/login/">登出</a>
      <!--{% else %}-->
      <a href="/login/">去登录</a>
      <a href="/register/">去注册</a>
      <!--{% endif %}-->
    </ul>

  </div>
</body>
</html>